package gbench.appdemo.trading.database;

import org.junit.jupiter.api.Test;

import gbench.commonApp.data.DataApp;

public class Database extends DataApp{
    
    /**
     * 创建用户
     */
    void createUser() {
        
    }
    
    @Test
    public void foo() {
        cfg.set("url", "jdbc:mysql://localhost:3306/trading?useSSL=false&serverTimezone=GMT%2B8&AllowPublicKeyRetrieval=True");
        this.reload();
        jdbc.withTransaction(sess->{
            var users = sess.sql2records("select * from t_user");
            System.out.println(users);
        });
        
    }
    

}
